#ifndef MOVIE_SOCKET_H
#define MOVIE_SOCKET_H

#include <QIODevice>
#include <QFile>
class MovieSocket : public QIODevice {

public:
    MovieSocket(QString fileName);
    virtual qint64 readData(char *data, qint64 maxlen);
    virtual qint64 writeData(const char *data, qint64 len);
    virtual bool isSequential() const;
    virtual bool open(QIODevice::OpenMode mode);
    virtual bool seek(qint64 pos);
    virtual qint64 size() const;
private:
    QString fileName;
    QFile file;
};

#endif // MOVIE_SOCKET_H
